package day05;
/*- 定义say()无参无返回值方法，调用测试
   - 定义say()有一个参无返回值方法，调用测试
   - 定义say()有两个参无返回值的方法，调用测试

 */
public class day05HomeWork2 {
    public static void main(String[] args) {
        say();
        say("王五");
        say("李四",18);

    }


    public static void say(){
        System.out.println("大家好我叫张三");
    }

    public static void say(String name){
        System.out.println("大家好我叫"+ name);
    }

    public static void say(String name,int age){
        System.out.println("大家好我叫"+name+"，今年"+age+"岁了");

    }
}
